﻿using UnityEngine;

public static partial class Extensions
{
    /// <summary>
    /// 计算自由落体时的速度
    /// </summary>
    public static float FFMEndSpeed(this Rigidbody2D rigidbody, float freeFallHight)
    {
        return Tools.FFMEndSpeed(rigidbody.gravityScale * Mathf.Abs(Physics2D.gravity.y), freeFallHight);
    }
}